package demomoreinher;

public  class Duck extends Animal implements ISwamming,IFly,IRunning{

    public Duck(String name, int age) {
        super(name, age);
    }

    @Override
    public void eat() {
        System.out.println(this.name+"吃鸭粮");
    }

    @Override
    public void fly() {
        System.out.println(this.name+"飞...");
    }

    @Override
    public void run() {
        System.out.println(this.name+"跑...");

    }

    @Override
    public void swam() {
        System.out.println(this.name+"游泳...");

    }
}
